#include<stdio.h>
int main()
{
    int C;
    scanf("%d",&C);
    double F=C*1.8+32;
    printf("%.1lf",F);
    return 0;
}
